<?php
/**
 * This file is part of the Yacms (http://www.yacms.org)
 * Copyright (c) 2019 gylr0505 (http://www.yacms.org)
 *
 * Author: 鬼一浪人 <gylr0505@163.com>
 *
 * DateTime: 19-10-25 上午12:21
 * Description:
 */

declare(strict_types = 1);

namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;

/**
 * Class FormId
 * @Entity(table="form_ids")
 * @package App\Model\Entity
 */
class FormId extends Model
{
    /**
     * @Id(incrementing=true)
     *
     * @Column(name="id", prop="id")
     * @var int|null
     */
    private $id;

    /**
     * @Column(name="app_id")
     * @var string
     */
    private $appId;

    /**
     * @Column(name="open_id")
     * @var string
     */
    private $openId;

    /**
     * @Column(name="form_id")
     * @var string
     */
    private $formId;

    /**
     * @Column(name="created_at")
     * @var string
     */
    private $createdAt;

    /**
     * @Column(name="user_id")
     * @var integer
     */
    private $userId;

    /**
     * @return int|null
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @param int|null $id
     */
    public function setId(?int $id): void
    {
        $this->id = $id;
    }


    /**
     * @return int|null
     */
    public function getAppId()
    {
        return $this->appId;
    }

    /**
     * @param int|null $app_id
     */
    public function setAppId($app_id): void
    {
        $this->appId = $app_id;
    }

    /**
     * @return int|null
     */
    public function getOpenId()
    {
        return $this->openId;
    }

    /**
     * @param int|null $open_id
     */
    public function setOpenId($open_id): void
    {
        $this->openId = $open_id;
    }

    /**
     * @return int|null
     */
    public function getFormId()
    {
        return $this->formId;
    }

    /**
     * @param $form_id
     */
    public function setFormId($form_id): void
    {
        $this->formId = $form_id;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * @param $created_at
     */
    public function setCreatedAt($created_at)
    {
        $this->createdAt = $created_at;
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($user_id)
    {
        $this->userId = $user_id;
    }
}
